package service.impl;

import dao.MemoDao;
import dao.impl.MemoDaoImpl;
import entity.Memo;
import service.MemoService;

import java.util.List;

public class MemoServiceImpl implements MemoService {
    MemoDao dao = new MemoDaoImpl();
    @Override
    public int selectMemoCount(int uid) {
        return dao.selectMemoCount(uid);
    }

    @Override
    public List<Memo> selectMemos(int mtid) {
        return dao.selectMemos(mtid);
    }

    @Override
    public Memo selectMemo(int mid) {
        return dao.selectMemo(mid);
    }
}
